#!/bin/bash

# Set up can0

sudo ip link set up can0 type can bitrate 1000000
sudo ip link set up can1 type can bitrate 1000000
sudo ip link set up can2 type can bitrate 1000000
sudo ip link set up can3 type can bitrate 1000000

gnome-terminal --window -x bash -c "roslaunch camera_test.launch;exec bash;"
sleep 3s
gnome-terminal --window -x bash -c "cd /home/k/X5/arx-follow-V2.1/follow1;source ./devel/setup.sh;roslaunch arm_control arx5v.launch;exec bash;"
sleep 3s
gnome-terminal --window -x bash -c "cd /home/k/X5/arx-follow-V2.1/follow2;source ./devel/setup.sh;roslaunch arm_control arx5v.launch;exec bash;"
sleep 3s
gnome-terminal --window -x bash -c "cd /home/k/X5/arx-follow-V2.1/master1;source ./devel/setup.sh;roslaunch arm_control arx5v.launch;exec bash;"
sleep 3s
gnome-terminal --window -x bash -c "cd /home/k/X5/arx-follow-V2.1/master2;source ./devel/setup.sh;roslaunch arm_control arx5v.launch;exec bash;"
sleep 3s